import Layout from '../views/layout/Layout'

const _import = require('./_import_' + process.env.NODE_ENV);

export default {
  path: '/biquan',
  component: Layout,
  name: 'biquan',
  meta: {title: '碧圈管理', icon: 'icon'},
  children: [
    {
      path: 'zhongCaoAudit',
      component: _import('biquan/audit/index'),
      name: 'zhongCaoAudit',
      meta: {
        title: '种草审核管理', icon: 'icon',
        buttons: {
          search: { label: '搜索', enabled: true },
          change: { label: '修改', enabled: true },
          audit: { label: '审核', enabled: true },
          batchAudit: { label: '批量审核', enabled: true }
        }
      },
    },
    {
      path: 'list',
      component: _import('biquan/list/index'),
      name: 'list',
      meta: {
        title: '碧圈列表管理', icon: 'icon',
        buttons: {
          search: { label: '搜索', enabled: true },
          add: { label: '新增', enabled: true },
          batchDelete: { label: '批量删除', enabled: true },
          edit: { label: '编辑', enabled: true },
          delete: { label: '删除', enabled: true }
        }
      },
      
    },
    {
      path: 'list/add',
      component: _import('biquan/list/addOrEdit'),
      name: 'listAdd',
      meta: {
        title: '新增',
        noCache: true
      },
      hidden: true
    },
    {
      path: 'list/edit',
      component: _import('biquan/list/addOrEdit'),
      name: 'listEdit',
      meta: {
        title: '编辑',
        noCache: true
      },
      hidden: true
    },
    {
      path: 'category',
      component: _import('biquan/category/index'),
      name: 'biQuanCategory',
      meta: {
        title: '碧圈分类管理', icon: 'icon',
        buttons: {
          add: { label: '新建一级分类', enabled: true },
          addSub: { label: '新建子类', enabled: true },
          edit: { label: '编辑', enabled: true },
          delete: { label: '删除', enabled: true }
        }
      }
    },
    {
      path: 'searchKeywords',
      component: _import('biquan/popularKeywords/index'),
      name: 'searchKeywords',
      meta: {
        title: '搜索关键词管理', icon: 'icon',
        buttons: {
          search: { label: '搜索', enabled: true },
          batchAdd: { label: '批量新建', enabled: true },
          batchDel: { label: '批量删除', enabled: true },
          edit: { label: '编辑', enabled: true },
          del: { label: '删除', enabled: true }
        }
      },
    }
  ]
}
